package com.csxh.test;

import java.util.Locale;
import java.util.ResourceBundle;

public class I18N {

	public static void main(String[] args) {
		
		Locale[] locales=Locale.getAvailableLocales();
		for (Locale locale : locales) {			
			System.out.println(locale);
		}
		//Locale locale=Locale.getDefault();
		ResourceBundle bundle=ResourceBundle.getBundle("message");
		
		String text=bundle.getString("error");
		
		System.out.println(text);

	}

}
